.modal-dialog
  .modal-content
    = form_tag do
      .modal-header
        %button.close{:type => 'button', :'data-dismiss' => 'modal'}
          %span{:'aria-hidden' => 'true'} &times;
          %span.sr-only Close
        %h4.modal-title#viewUserLabel View User
      .modal-body
        %table.table.table-hover
          %tbody
            %tr
              %th Full Name
              %td= @user.name
            %tr
              %th Email Address
              %td= @user.email
            %tr
              %th Created At
              %td= @user.created_at.to_formatted_s(:long)
            %tr
              %th Sign In Count
              %td= @user.sign_in_count
            %tr
              %th Current Sign In At
              %td= @user.current_sign_in_at.to_formatted_s(:long)
            %tr
              %th Current Sign In Ip
              %td= @user.current_sign_in_ip
            %tr
              %th Roles
              %td= YAML::load(@user.roles).join(':')
      .modal-footer
        %button.btn.btn-default{:type => 'button', :'data-dismiss' => 'modal'} Close
